package com;

public class Truck extends Car {

	private int goodsNum;
	
	public Truck() {
		this.price = 0;
		this.goodsNum = 0;
		this.name = "";
	}
	
	public Truck(int price, int goodsNum, String name) {
		this.identity = 1;
		this.price = price;
		this.goodsNum = goodsNum;
		this.name = name;
	}
	
	public int getGoodsNum() {
		return goodsNum;
	}
	public byte getModel() {
		return identity;
	}
}
